package Logic.EventSample.Guild;

import FrameWork.Event.Trigger;
import FrameWork.Model.Player;
import org.springframework.stereotype.Component;

@Component
public class GuildTrigger extends Trigger<GuildEventHandler> {

    public void fire(Player player,GuildEventType type){
        for (GuildEventHandler handler:getEventHandlers()){
            handler.onGuildStateChange(player,type);
        }
    }

}
